#include "JsonHelper.h"
#include "trace_worker.h"

rapidjson::Document CJsonHelper::m_document;

CJsonHelper::CJsonHelper()
{

}

CJsonHelper::~CJsonHelper()
{

}

const char *CJsonHelper::toString(const rapidjson::Value &value, rapidjson::StringBuffer &buffer)
{   //trace_worker();
    rapidjson::Writer<rapidjson::StringBuffer> writer(buffer);
    value.Accept(writer);
    //trace_printf(buffer.GetString());
    return buffer.GetString();
}
